﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _3接口
{
    class ProgramTest
    {
        void Main(string[] args)
        {
            string a = "a";
            string b = "b";
            MakeSvcId MI = new SlashId();
            Console.WriteLine("产生的ID是：{0}", MI.MakeID(a, b));
            //输出结果：a/b
            Console.ReadLine();
           
        }
    }
    public interface MakeSvcId
    {
        string MakeID(string a, string b);
    }
    class SlashId : MakeSvcId
    {
        public string MakeID(string a, string b)
        {
            return a + "/" + b;
        }
    }
    class LineId : MakeSvcId
    {
        public string MakeID(string a, string b)
        {
            return a + "_" + b;
        }
    }
}
